{% load wenlincms_tags %}

<div class="module" id="comments-module">
    <h2>最新评论</h2>
    <ul>
        {% for comment in comments %}
            <li>
                <a>{{ comment.user_name }}</a>
                <span>{{ comment.intro|richtext_filters|safe }}</span>

                <p>
                    {% if comment.content_object %}
                        <a href="{{ comment.content_object.get_absolute_url }}">{{ comment.content_object }}</a>
                    {% endif %}
                    <br>{{ comment.user }} - <a>{{ comment.submit_date|timesince }}之前</a>
                </p>
            </li>
        {% endfor %}
    </ul>
</div>
